Say you have a function that returns the sum of two numbers:
function total(a,b)
{
result=a+b
return result
} |
#Title: The return Statement : JavaScript Functions
#Element: 235: The return Statement : JavaScript Functions
#Article: 170: JavaScript Functions